<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>选择器权重</title>
		<!-- 选择器权重越高，选中几率越大 -->
		<style>
			*{ /*权值  0  很容易被覆盖*/
			color: #00ff00;
			background: #aaff00;!important;
			
			}
			div{/*权值  1*/
			color: #ff5500;
			background: #ffaa00;
			}
			.d1{/*权值 10*/
				color: #ff0000;
				background: #55ffff;
			}
			div.d1{/*选择器权值之和  权值1+10   11*/
				color: #5500ff;
				background: #55007f;
			}
			body div.d1{/*权值 12*/
				font-size: 25px;
				color: #000000;
				background: #aa55ff;
			}
			#d1{/*权值  100*/
				font-size: 15px;
				color: #aaaaff;
				background: #00007f;
				
			}
			div#d1{/*权值  101*/
				font-size: 30x;
				color: #aaaa7f;
				background: #ff0000;
			}
			div#d1:hover{
				color: #ff55ff;
				background: #55ffff;
			}
			
		</style>
	</head>
	<body>
		<div class="d1" id="d1" style="color: ;">Lorem ipsum dolor sit amet consectetur, adipisicing elit. Error minus iste eligendi, itaque nobis possimus explicabo reiciendis rem illo quia sint. Molestiae minus pariatur quo magni quam voluptates omnis laboriosam.</div>
	</body>
</html>